﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FWMS.Service
{
    class CailiaoguanliService
    {
        //材料全部查询
        public Bean.CailiaoguanliBean cailiaoguanliServiceSelect()
        {
            DAO.CailiaoguanliDao cailiaoguanlidao = new DAO.CailiaoguanliDao();
            return cailiaoguanlidao.cailiaoguanliDaoSelect();
        }
        //材料条件查询
        public Bean.CailiaoguanliBean cailiaoguanliServiceSelectContation(Bean.CailiaoguanliBean bean)
        {
            DAO.CailiaoguanliDao cailiaoguanlidao = new DAO.CailiaoguanliDao();
            return cailiaoguanlidao.cailiaoguanliDaoSelectCondition(bean);
        }
        //材料添加
        public bool cailiaoguanliServiceAdd(Bean.CailiaoguanliBean bean)
        {
            DAO.CailiaoguanliDao cailiaoguanlidao = new DAO.CailiaoguanliDao();
            return cailiaoguanlidao.cailiaoguanliDaoAdd(bean);
        }

        //材料修改
        public bool cailiaoguanliServiceModify(Bean.CailiaoguanliBean bean)
        {
            DAO.CailiaoguanliDao cailiaoguanlidao = new DAO.CailiaoguanliDao();
            return cailiaoguanlidao.cailiaoguanliDaoModify(bean);
        }
    }
}
